package com.ysd.lis.controller.qc;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.qc.QcInstrSampleDto;
import com.ysd.lis.request.qc.QcInstrSampleParam;
import com.ysd.lis.service.qc.QcInstrSampleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 员工表
 * 前端控制器
 * </p>
 *
 * @author pengrongshuai
 * @since 2024-01-25
 */
@Api(tags = "质控标本号对照")
@RestController
@RequestMapping("/api/qc/qcInstrSample")
public class QcInstrSampleController extends BaseController {

    @Autowired
    QcInstrSampleService qcInstrSampleService;
    @ApiOperation("查询")
    @GetMapping("/findQcInstrSampleAndLabItemDictList")
    public Result findQcInstrSampleAndLabItemDictList(QcInstrSampleParam param){
        return qcInstrSampleService.findQcInstrSampleAndLabItemDictList(param);
    }

    @ApiOperation("修改")
    @PostMapping("/saveOrUpdateInstrSample")
    public Result saveOrUpdateInstrSample(@RequestBody QcInstrSampleDto dto) {
        return qcInstrSampleService.saveOrUpdateInstrSample(dto);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteInstrSampleList")
    public Result batchDeleteInstrSampleList(@RequestBody QcInstrSampleDto dto){
        return  qcInstrSampleService.batchDeleteInstrSampleList(dto);
    }


}
